/**
 * 小辉钱包路由配置
 */
// import lazy from '@tools/lazy';
import { lazy } from "react";

const xhqbIndex = lazy(() => import("@views/viewXHQB/xhqbIndex/index"));
const realNameAuth = lazy(() => import("@views/viewXHQB/realNameAuth"));
const signBank = lazy(() => import("@views/viewCommon/bankManage/signBank"));
const recharge = lazy(() => import("@views/viewXHQB/recharge/index"));
const personalInfo = lazy(() => import("@views/viewXHQB/personalInfo/index"));
const identityAuthInfo = lazy(() =>
	import("@views/viewXHQB/identityAuthInfo/index")
);
const walletbill = lazy(() => import("@views/viewXHQB/walletbill"));
const walletBillPage = lazy(() =>
	import("@views/viewXHQB/walletBillPage/walletBillPage")
);
const walletBillNew = lazy(() => import("@views/viewXHQB/WalletBillNew"));
const Settransactionpassword = lazy(() =>
	import("@views/viewXHQB/settransactionpassword/Settransactionpassword")
);
const paymentpassword = lazy(() => import("@views/viewXHQB/paymentpassword"));
const rechargeinstruction = lazy(() =>
	import("@views/viewXHQB/rechargeinstruction")
);
const forgetpassword = lazy(() =>
	import("@views/viewXHQB/forgetpassword/forgetpassword")
);
const xhqbAddBank = lazy(() => import("@views/viewXHQB/addBank"));
const xhqbBankList = lazy(() => import("@views/viewXHQB/bankList/index"));
const paymentagreementdisplay = lazy(() =>
	import("@views/viewXHQB/paymentagreementdisplay/index")
);
const unboundBankCard = lazy(() =>
	import("@views/viewXHQB/unboundBankCard/unboundBankCard")
);
const myReturn = lazy(() => import("@views/viewXHQB/myReturn/index")); //我的待还
const setup = lazy(() => import("@views/viewXHQB/setup/setup")); //钱包设置
const myAgreement = lazy(() =>
	import("@views/viewXHQB/setup/myAgreement/myAgreement")
); //我的协议
const pdfAgreement = lazy(() =>
	import("@views/viewXHQB/setup/pdfAgreement/pdfAgreement")
); //我的协议-合同查看

// 新收银台
const wallet = lazy(() => import("@views/wallet/wallet"));
const selectCouponForH5 = lazy(() =>
	import("@views/viewCommon/selectCoupon/selectCouponForH5")
);
//会员码支付
const memberCodeWallet = lazy(() => import("@views/memberCodeWallet/wallet"));

const realNameInfor = lazy(() => import("@views/viewXHQB/realNameInfor"));

const xhqbauthentication = lazy(() => import("@views/viewXHQB/authentication"));
// 商城支付
const shopWallet = lazy(() => import("@views/shopWallet/index"));
const shopPaySuccess = lazy(() => import("@views/shopWallet/shopPaySuccess"));
const shopPayFail = lazy(() => import("@views/shopWallet/shopPayFail"));

/* 快捷支付-支付确认 */
const fastPayment_payConfirm = lazy(() =>
	import("@views/viewXHQB/FastPayment/PayConfirm")
);
/* 快捷支付-绑卡 */
const fastPayment_bindCard = lazy(() =>
	import("@views/viewXHQB/FastPayment/BindCard")
);
/* 快捷支付-处理中 */
const fastPayment_inProcess = lazy(() =>
	import("@views/viewXHQB/FastPayment/InProcess")
);
/* 支付优惠-支付优惠 */
const paymentDiscount = lazy(() => import("@views/viewXHQB/PaymentDiscount"));
/* 支付优惠-领券中心 */
const paymentDiscount_collectCouponCenter = lazy(() =>
	import("@views/viewXHQB/PaymentDiscount/CollectCouponCenter")
);
/* 支付优惠-优惠券 */
const paymentDiscount_coupon = lazy(() =>
	import("@views/viewXHQB/PaymentDiscount/Coupon")
);
/* 支付优惠-优惠券 */
const paymentDiscount_saveMoney = lazy(() =>
	import("@views/viewXHQB/PaymentDiscount/SaveMoney")
);
/* 支付优惠-使用记录 */
const paymentDiscount_useRecord = lazy(() =>
	import("@views/viewXHQB/PaymentDiscount/UseRecord")
);
/* 银行福利Banner落地页 */
const bankWelfareLand = lazy(() =>
	import("@views/viewXHQB/xhqbIndex/bankWelfareLand")
);

const xhqbRouters = [
	/**银行卡签约 */
	{
		pathName: "/signBank/:data",
		component: signBank,
		exact: false
	},
	/**实名认证 */
	{
		pathName: "/xhqbrealnameauth",
		component: realNameAuth,
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/realNameInfor",
		component: realNameInfor,
		exact: false
	},
	{
		pathName: "/xhqbauthentication",
		component: xhqbauthentication,
		exact: false
	},
	/**钱包首页 */
	{
		pathName: "/xhqbIndex",
		component: xhqbIndex,
		exact: false
	},
	/**余额首页 */
	{
		pathName: "/xhqbrecharge",
		component: recharge,
		exact: false
	},
	/**个人信息 */
	{
		pathName: "/xhqbpersonalInfo",
		component: personalInfo,
		exact: false
	},
	/**认证信息 */
	{
		pathName: "/xhqbIdentityAuthInfo",
		component: identityAuthInfo
	},
	/* 钱包账单 */
	{
		pathName: "/walletbill",
		component: walletbill,
		exact: false
	},
	/* 永辉钱包页新增钱包账单 */
	{
		pathName: "/walletBillPage",
		component: walletBillPage,
		exact: false
	},
	/* 永辉钱包页新增钱包账单 */
	{
		pathName: "/walletBillNew",
		component: walletBillNew,
		exact: false
	},
	/* 设置支付密码 */
	{
		pathName: "/Settransactionpassword",
		component: Settransactionpassword,
		exact: false
	},
	/* 支付密码 */
	{
		pathName: "/paymentpassword",
		component: paymentpassword,
		exact: false
	},
	/* 充值说明 */
	{
		pathName: "/rechargeinstruction",
		component: rechargeinstruction,
		exact: false
	},
	/* 忘记密码 */

	{
		pathName: "/forgetpassword",
		component: forgetpassword,
		exact: false
	},
	/* 银行卡列表 */
	{
		pathName: "/xhqbBankList",
		component: xhqbBankList,
		exact: false
	},
	/* 钱包添加银行卡 */
	{
		pathName: "/xhqbAddBank",
		component: xhqbAddBank,
		exact: false,
		cacheRouter: true
	},
	/* 支付协议展示 */
	{
		pathName: "/paymentagreementdisplay",
		component: paymentagreementdisplay,
		exact: false
	},
	/* 解绑银行卡 */
	{
		pathName: "/unboundBankCard",
		component: unboundBankCard,
		exact: false
	},
	/**收银台 */
	{
		pathName: "/wallet",
		component: wallet,
		cacheRouter: true,
		cacheKey: "wallet",
		exact: false
	},
	/**收银台选券 */
	{
		pathName: "/selectCouponForH5",
		component: selectCouponForH5,
		exact: false
	},
	/** 会员码支付 */
	{
		pathName: "/memberCodeWallet",
		component: memberCodeWallet,
		cacheRouter: true,
		cacheKey: "memberCodeWallet",
		exact: false
	},

	/**我的待还 */
	{
		pathName: "/myReturn",
		component: myReturn,
		exact: false
	},
	/**设置 */
	{
		pathName: "/setup",
		component: setup,
		exact: false
	},
	/**我的协议 */
	{
		pathName: "/myAgreement",
		component: myAgreement,
		exact: false
	},
	/**我的协议-合同查看 */
	{
		pathName: "/pdfAgreement",
		component: pdfAgreement,
		exact: false
	},
	/**线上收银台列表 */
	{
		pathName: "/shopWallet",
		component: shopWallet,
		exact: false
	},
	/**线上收银台-支付成功 */
	{
		pathName: "/shopPaySuccess",
		component: shopPaySuccess,
		exact: false
	},
	/**线上收银台-支付失败 */
	{
		pathName: "/shopPayFail",
		component: shopPayFail,
		exact: false
	},
	/**快捷支付-支付确认  */
	{
		pathName: "/fastPayment/payConfirm",
		component: fastPayment_payConfirm,
		exact: false
	},
	/**快捷支付-绑卡 */
	{
		pathName: "/fastPayment/bindCard",
		component: fastPayment_bindCard,
		exact: false
	},
	/**快捷支付-处理中  */
	{
		pathName: "/fastPayment/inProcess",
		component: fastPayment_inProcess,
		exact: false
	},
	/**支付优惠-支付优惠 */
	{
		pathName: "/paymentDiscount/index",
		component: paymentDiscount,
		exact: false
	},
	/**支付优惠-领券中心 */
	{
		pathName: "/paymentDiscount/collectCouponCenter",
		component: paymentDiscount_collectCouponCenter,
		exact: false
	},
	/**支付优惠-优惠券 */
	{
		pathName: "/paymentDiscount/coupon",
		component: paymentDiscount_coupon,
		exact: false
	},
	/**支付优惠-优惠券 */
	{
		pathName: "/paymentDiscount/saveMoney",
		component: paymentDiscount_saveMoney,
		exact: false
	},
	/**支付优惠-使用记录 */
	{
		pathName: "/paymentDiscount/useRecord",
		component: paymentDiscount_useRecord,
		exact: false
	},
	/**银行福利Banner落地页 */
	{
		pathName: "/bankWelfareLand",
		component: bankWelfareLand,
		exact: false
	}
];
export { xhqbRouters };
